package com.test.demo.annotation.proxy.http.annotation;

import com.test.demo.annotation.proxy.http.factory.MyAbstractFactoryBean;
import com.test.demo.annotation.proxy.http.registrar.MyAutofigurationRegistrar;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @ClassName EnableMyFeginClientAutoConfiguration
 * @Description
 * @Author laigl
 * @Date 2020/2/22 22:37
 **/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import(MyAutofigurationRegistrar.class)
public @interface EnableMyAutoConfiguration {

    String basePackage() default "";

    //设置代理类实现，默认为使用JDK动态代理
    Class<? extends MyAbstractFactoryBean> implClass() default MyAbstractFactoryBean.class;

}
